package com.caozhi.mspeoject.nb_search.remote;

import com.woniuxy.boot.common.dto.IdCardDTO;
import com.woniuxy.boot.common.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("nb-auth")
public interface UserRemote {
    @GetMapping("app/user/getUserById")
    UserDTO getUserById(@RequestParam("id") Long id);
    @GetMapping("pc/admin/getAllUser")
    List<UserDTO> getAllUser();
    @GetMapping("app/idCard/getUserIdCard")
    IdCardDTO getUserIdCard(@RequestParam("userId") Long userId);
}
